<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ page
	import="ra.db.connections.CTIDInf,java.sql.ResultSet,java.sql.SQLException"
	import="front.net.entity.cookie.ICookieConstant"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
	String username = request.getParameter(ICookieConstant.USER_NAME);
	ResultSet rs = CTIDInf.readIdInf(username);
	rs.next();
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<link rel="stylesheet" type="text/css" href="css/CTApply.css" />
</head>
<div>
	<table cellpadding="0" cellspacing="0" border="0">
		<tbody>
			<tr>
				<td>
					<div class="banner-box" style="height:40px;">
						<table border="0" cellpadding="0" cellspacing="0">
							<tbody>
								<tr>
									<td>
										<div class="banner-logo"></div></td>
									<td>
										<div>证书申请</div></td>
								</tr>
							</tbody>
						</table>
						<div class="close-button"></div>
					</div>
					<div>
						<table cellpadding="0" cellspacing="0" border="0">
							<thead>
								<tr>
									<td>
										<div>
											<div id="apply-form-title">输入申请信息</div>
											<div id="apply-form-describe">
												<div id="appy-form-title-name">填写您的个人信息</div>
												<div>请填写所有字段，以便管理员审核</div>
											</div>
										</div></td>
								</tr>
							</thead>
							<tbody>
								<tr>
									<td>
										<div id="CTApply-div">
											<s:form name="CTApplyform" method="post" action="ctapply"
												namespace="/ra">
												<div>
													<table cellpadding="0" cellspacing="0" border="0">
														<tbody>
															<tr>
																<td>
																	<div class="apply-form-item">
																		<div class="apply-form-item-name">名字：</div>
																	</div>
																</td>
																<td>
																	<div class="apply-form-item-value">
																		<input class="apply-form-item-input"
																			required="required" type="text" name="ct.cn" 
																			value=<%=rs.getString("cn")%> />
																	</div>
																</td>
															</tr>
															<tr>
																<td>
																	<div class="apply-form-item">
																		<div class="apply-form-item-name">职位：</div>
																	</div>
																</td>
																<td>
																	<div class="apply-form-item-value">
																		<input class="apply-form-item-input"
																			required="required" type="text" name="ct.ou" 
																			value=<%=rs.getString("ou")%> />
																	</div>
																</td>
															</tr>
															<tr>
																<td>
																	<div class="apply-form-item">
																		<div class="apply-form-item-name">部门：</div>
																	</div>
																</td>
																<td>
																	<div class="apply-form-item-value">
																		<input class="apply-form-item-input"
																			required="required" type="text" name="ct.o" 
																			value=<%=rs.getString("o")%> />
																	</div>
																</td>
															</tr>
															<tr>
																<td>
																	<div class="apply-form-item">
																		<div class="apply-form-item-name">公司：</div>
																	</div>
																</td>
																<td>
																	<div class="apply-form-item-value">
																		<input class="apply-form-item-input"
																			required="required" type="text" name="ct.l" 
																			value=<%=rs.getString("l")%> />
																	</div>
																</td>
															</tr>
															<tr>
																<td>
																	<div class="apply-form-item">
																		<div class="apply-form-item-name">城市：</div>
																	</div>
																</td>
																<td>
																	<div class="apply-form-item-value">
																		<input class="apply-form-item-input"
																			required="required" type="text" name="ct.st" 
																			value=<%=rs.getString("st")%> />
																	</div>
																</td>
															</tr>
															<tr>
																<td>
																	<div class="apply-form-item">
																		<div class="apply-form-item-name">国家：</div>
																	</div>
																</td>
																<td>
																	<div class="apply-form-item-value">
																		<input class="apply-form-item-input"
																			required="required" type="text" name="ct.c" 
																			value=<%=rs.getString("c")%> />
																	</div>
																</td>
															</tr>
															<tr>
																<td>
																	<div class="apply-form-item">
																		<div class="apply-form-item-name">电子邮件：</div>
																	</div>
																</td>
																<td>
																	<div class="apply-form-item-value">
																		<input class="apply-form-item-input"
																			required="required" type="text" name="ct.mail" 
																			value=<%=rs.getString("email")%> />
																	</div>
																</td>
															</tr>
															<tr>
																<td>
																	<div class="apply-form-item">
																		<div class="apply-form-item-name">密码：</div>
																	</div>
																</td>
																<td>
																	<div class="apply-form-item-value">
																		<input class="apply-form-item-input"
																			required="required" type="password" name="ct.password" />
																	</div>
																</td>
															</tr>
															<tr>
																<td></td>
																<td>
																	<div>
																		<input id="submit-button" type="submit" value="提交"
																			id="submit" />
																	</div>
																</td>
															</tr>
														</tbody>
													</table>
												</div>
												<div class="spacer"></div>
											</s:form>
										</div>
									</td>
								</tr>
							</tbody>
						</table>
					</div>
				</td>
			</tr>
		</tbody>
	</table>

</div>
</html>
<%rs.close(); %>
